<?php
// Load Menu
$this->template->menu('cliente/list');
?>
 
<div id="container">
    <?php if(isset($clientes)) { ?>
    <table class="table_list">
        <tr>
	        <th>Nome</th>
	        <th>Telefone</th>
	        <th>Email</th>
	        <th>Actions</th>
	    </tr>
	    <?php foreach ($clientes as $cliente) { ?>
	        <tr id="user_<?php echo $cliente['id']; ?>">
		        <td><?php echo $cliente['nome']; ?></td>
		        <td><?php echo $cliente['telefone']; ?></td>
		        <td><?php echo $cliente['email']; ?></td>
		        <td>
		            <?php echo anchor('cliente/edit/'.$cliente['id'], '<img src="images/edit.png" title="Edit Client"/>'); ?>
		            <?php echo anchor('cliente/remove/'.$cliente['id'], '<img src="images/remove.png" title="Remove Client"/>', 'class="remove-user-event"'); ?>
		        </td>
	        </tr>
	    <?php } ?>
    </div>
    <?php } ?>
</div>